package com.cheer.vo;

import com.cheer.entity.Applicant;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class ApplicantContactVO {

    private String contactPerson;

    private String contactPersonPhone;

    private String phone;

    private String email;

    private String address;

    public static ApplicantContactVO build(Applicant applicant) {
        ApplicantContactVO applicantContactVO = new ApplicantContactVO();
        applicantContactVO.setContactPerson(applicant.getContactPerson());
        applicantContactVO.setContactPersonPhone(applicant.getContactPersonPhone());
        applicantContactVO.setPhone(applicant.getPhone());
        applicantContactVO.setEmail(applicant.getEmail());
        applicantContactVO.setAddress(applicant.getAddress());
        return applicantContactVO;
    }

}
